﻿
@{
    ViewBag.Title = "ReceiptServiceEvaluations";
}
<style type="text/css">
    .return {
        width: 80px;
        position: fixed;
        right: 100px;
        top: 400px;
        z-index: 100;
    }
    form {
        background: white;
        padding-left: 7%;
        padding-right: 7%;
        padding-bottom: 2%;
        padding-top: 2%;
    }

    .table, .table > tbody > tr > td {
        border: 1px solid;
        font-size: 15px;
        vertical-align: middle;
    }

    .page_title {
        width: 100%;
        height: 55px;
        color: #000;
        font-size: 25px;
        line-height: 55px;
        text-align: center;
        font-weight: 700;
    }

    .table_number {
        color: #000;
        font-size:18px;
    }

    .td_menu {
        font-weight: bold;
    }

    .xia_none {
        width: 150px;
        border: none;
        border-bottom: 1px solid;
        outline: none;
    }

    .border_none {
        border: none;
        outline: none;
        width: 100%;
    }
</style>
<a class="btn btn-default return" href="javascript: history.go(-1);">返&nbsp;&nbsp;回</a>
<form action="/As/SubmitReceiptServiceEvaluations" method="post">
    <div class="page_title">送达回证</div>
    <div class="table_number">
        表格编号：
        <span name="TableNumber">@ViewBag.TableNumber</span>
        <input name="ShroffId" type="hidden" value="@ViewBag.ShroffId" />
    </div>
    <table class="receiptServiceEvaluations_talbe table">
        <tr>
            <td>送达文书机构</td>
            <td>
                <input class="border_none" value="@ViewBag.Rece.AmanuensisInstitution" name="AmanuensisInstitution" />
            </td>
            <td>受送达人</td>
            <td>
                <input class="border_none" value="@ViewBag.Rece.ManuensisPeople" name="ManuensisPeople" />
            </td>
        </tr>
        <tr>
            <td>其他资料</td>
            <td>
                <input class="border_none" value="@ViewBag.Rece.OtherData" name="OtherData" />
            </td>
            <td>文书份数</td>
            <td class="text-center">
                <input class="xia_none text-center" value="@ViewBag.Rece.InstitutionNumber" name="InstitutionNumber" style="width:100px;" />份
            </td>
        </tr>
        <tr>
            <td colspan="4" class="text-center">
                <label>
                    <input type="radio" name="ReceiptMode" value="自取" @(ViewBag.Rece.ReceiptMode == "自取"?"checked":"") />自取
                </label>
            </td>
        </tr>
        <tr>
            <td>以上文书经领取人核对无误</td>
            <td>
                签字：
                <div>
                    <input class="xia_none ziqu" value="@ViewBag.Rece.TakePeople" name="TakePeople" />
                </div>
            </td>
            <td>领取时间</td>
            <td>
                <input class="xia_none ziqu" value="@ViewBag.Rece.TabkeTime" name="TabkeTime" />
            </td>
        </tr>
        <tr>
            <td>代领人与被代领人关系</td>
            <td>
                <input class="border_none ziqu" value="@ViewBag.Rece.RelationBoth" name="RelationBoth" />
            </td>
            <td>代领人电话</td>
            <td>
                <input class="border_none ziqu" value="@ViewBag.Rece.RelationPhone" name="RelationPhone" />
            </td>
        </tr>
        <tr>
            <td>送达人</td>
            <td>
                <input class="border_none ziqu" value="@ViewBag.Rece.AmanuensisPeople" name="AmanuensisPeople" />
            </td>
            <td>受送达人拒绝理由</td>
            <td>
                <input class="border_none ziqu" value="@ViewBag.Rece.ToRejectReason" name="ToRejectReason" />
            </td>
        </tr>
        <tr>
            <td colspan="4" class="text-center">
                <label>
                    <input type="radio" name="ReceiptMode" value="邮寄" @(ViewBag.Rece.ReceiptMode == "邮寄" ? "checked":"") />邮寄
                </label>
            </td>
        </tr>
        <tr>
            <td>收件人签名</td>
            <td>
                <input class="border_none youji" name="AddresseeSign" value="@ViewBag.Rece.AddresseeSign" />
            </td>
            <td>收件时间</td>
            <td>
                <input class="xia_none youji" name="AddressDateTime" value="@ViewBag.Rece.AddressDateTime" />
            </td>
        </tr>
        <tr>
            <td>送达回证寄回时间</td>
            <td>
                <input class="xia_none youji" name="BackTime" value="@ViewBag.Rece.BackTime" />
            </td>
            <td>经办人</td>
            <td>
                <input class="border_none youji" name="Operator" value="@ViewBag.Rece.Operator" />
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <div>收到邮寄鉴定文书后请尽快送达回证邮寄或拍照至本所！</div>
                <br />
                <div>
                    邮寄地址：
                    <input class="xia_none youji" name="MailAddress" value="@ViewBag.Rece.MailAddress" />
                </div>
                <br />
                邮编：
                <input class="xia_none youji" name="PostCode" value="@ViewBag.Rece.PostCode" />&nbsp;&nbsp;
                联系人：
                <input class="xia_none youji" name="Contact" value="@ViewBag.Rece.Contact" />&nbsp;&nbsp;
                电话：
                <input class="xia_none youji" name="Phone" value="@ViewBag.Rece.Phone" />&nbsp;&nbsp;
                QQ：
                <input class="xia_none youji" name="QQ" value="@ViewBag.Rece.QQ" />
            </td>
        </tr>
        <tr>
            <td colspan="4" class="text-center">
                <label>
                    <input type="radio" name="ReceiptMode" value="其他" @(ViewBag.Rece.ReceiptMode == "其他" ? "checked":"") />其他
                </label>
            </td>
        </tr>
        <tr>
            <td>收件人</td>
            <td>
                <input class="border_none qita" name="Addressee" value="@ViewBag.Rece.Addressee" />
            </td>
            <td>送达说明</td>
            <td>
                <input class="border_none qita" name="AmanuensisExplanation" value="@ViewBag.Rece.AmanuensisExplanation" />
            </td>
        </tr>
    </table>
    <div class="page_title">服务评价表</div>
    <table class="receiptServiceEvaluations_talbe table ">
        @{
            string[] names = new string[] { "ShroffCircs", "ShroffPeople", "ShroffFinish", "ShroffContentOrRequire" };
            string[] menu = new string[] { "1、鉴定受理情况", "2、鉴定人员检查操作", "3、鉴定完成情况", "4、鉴定内容是否符合委托要求" };
            string[] con1 = new string[] { "礼貌、周到", "比较礼貌周到", "不够礼貌周到" };
            string[] con2 = new string[] { "规范", "比较规范", "不够规范" };
            string[] con3 = new string[] { "迅速、报告发送及时", "在规定时限内", "超出规定时限" };
            string[] con4 = new string[] { "全部符合", "部分符合", "不符合" };
            Dictionary<string, string[]> dic = new Dictionary<string, string[]>();
            dic.Add(menu[0], con1);
            dic.Add(menu[1], con2);
            dic.Add(menu[2], con3);
            dic.Add(menu[3], con4);
            int i = 0;
            foreach (var item in dic)
            {
                <tr>
                    <td colspan="3" class="td_menu">@item.Key</td>
                </tr>
                <tr>
                    @{
                        foreach (var item2 in item.Value)
                        {
                            bool b = false;
                            foreach (var item3 in ViewBag.pingjia)
                            {
                                if (item3 == item2)
                                {
                                    b = true;
                                    break;
                                }
                                else
                                {
                                    b = false;
                                }
                            }
                            <td>
                                <label>
                                    <input type="radio" name="@names[i]" value="@item2" @(b ? "checked" : "") />@item2
                                </label>
                            </td>
                        }
                    }
                </tr>
                i++;
            }
        }
        <tr>
            <td colspan="3">
                意见或建议：<input class="xia_none" name="Idea" value="@ViewBag.Rece.Idea" />
            </td>
        </tr>
        <tr>
            <td colspan="3">
                监督电话：<input class="xia_none" name="SurveillancePhone" value="@ViewBag.Rece.SurveillancePhone" />
            </td>
        </tr>
        <tr>
            <td colspan="3" class="text-center">
                <button type="submit" class="btn btn-block">提交</button>
            </td>
        </tr>
    </table>
</form>
<div style="margin-left:40px;color:white;">请对本公司鉴定服务予以评价，在您任务符合的栏目内画√，并填写您的意见和建议，感谢您的反馈。</div>


<script type="text/javascript">
    $("input.ziqu,input.youji,input.qita").attr("readonly", "readonly");
    var type = @Html.Raw(Json.Encode(ViewBag.Rece.ReceiptMode));
    Check(type);
    $("input[name='ReceiptMode'").change(function () {
        var type = $(this).val();
        Check(type);
    });
    function Check(type){
        if (type == "自取") {
            $('.ziqu').removeAttr("readonly").attr("required", "required");
            $('.youji').attr("readonly", "readonly");
            $('.qita').attr("readonly", "readonly");
            $(".youji,.qita").val("");
        } else if (type == "邮寄") {
            $('.ziqu').attr("readonly", "readonly");
            $('.youji').removeAttr("readonly").attr("required", "required");
            $('.qita').attr("readonly", "readonly");
            $(".ziqu,.qita").val("");
        } else if (type == "其他"){
            $('.ziqu').attr("readonly", "readonly");
            $('.youji').attr("readonly", "readonly");
            $('.qita').removeAttr("readonly").attr("required", "required");
            $(".youji,.ziqu").val("");
        }
    }
</script>
